package c2.group.server.controller;

import c2.group.business.GroupBody;
import easy.java.spring.annotation.MyGetMapping;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Slf4j
@RequestMapping("")
@Controller
public class RootController extends GroupBaseController {

    // http://localhost:8989/info
    @MyGetMapping("info")
    @ResponseBody
    public Object info() {
        log.error("呵呵呵呵");
        return "嘿嘿" + GroupBody.version();
    }
}
